package de.neua;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class FirstAppActivity extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        // Set up click listerners for all buttons
        View aboutButton = findViewById(R.id.about_button);
        aboutButton.setOnClickListener(this);
        View loginButton = findViewById(R.id.login_button);
        loginButton.setOnClickListener(this);
    }

	public void onClick(View v) {
		switch (v.getId()){
		case R.id.about_button: 
			Intent about = new Intent(this, About.class);
			startActivity(about);
			break;
		case R.id.login_button:
			Intent login = new Intent(this, Login.class);
			startActivity(login);
			break;
		// more buttons can be registered here
		}
		
	}
}